#include <string.h>
#include <stdio.h>

int main( int argc, char *argv[] )
{
	char *p = new char[ strlen( argv[1] ) + 1 ];
	memcpy( p, argv[1], strlen( argv[1] + 1 ) );
	char *saveptr = NULL;
	const char *t = strtok_r( p, ":c", &saveptr );
	printf( "token: %s\n", t );
	while( (t = strtok_r( NULL, ":c", &saveptr ) ) != NULL ) {
		printf( "token: %s\n", t );
	}

}

